package com.etc.zzsys.dao;

import java.util.List;

import com.etc.zzsys.entity.Question;
import com.etc.zzsys.entity.User;
import com.etc.zzsys.util.PageData;

public interface QuestionDao {
	public List<Question> getQuestions();
	public boolean addQuestion(Question q,int userId);
	public boolean delQuestion(int qId);
	
	/**
	 * 根据用户id查询问题信息
	 * @param id
	 * @return
	 */
	public List<Question> getQuestionById(int id);
	
	public PageData<Question> queryQuestionByPage(int page,int pageSize,String key);
	
	public List<Question> getLastQuestion(int num);
}
